package com.neusoft.neuiotms.dcom.vo;

import java.util.Date;

import javax.validation.constraints.NotBlank;

import org.hibernate.validator.constraints.Length;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Setter
@Getter
@ToString
public class HolidayVO implements IExcelDataModel, IExcelModel {

    /** 节假日名称 */
    @Excel(name = "节假日名称", orderNum = "0")
    @NotBlank(message = "节假日名称不能为空")
    @Length(max = 255, message = "节假日名称不能超过{max}位")
    private String name;

    /** 类型 */
    @Excel(name = "类型", orderNum = "1")
    @NotBlank(message = "类型不能为空")
    @Length(max = 255, message = "类型不能超过{max}位")
    private String type;

    @Excel(name = "日期", orderNum = "2", format = "yyyy-MM-dd")
    private Date date;

    private int rowNum;

    private String errorMsg;

    @Override
    public Integer getRowNum() {
        return this.rowNum;
    }

    @Override
    public void setRowNum(final Integer rowNum) {
        this.rowNum = rowNum;
    }

    @Override
    public String getErrorMsg() {
        return this.errorMsg;
    }

    @Override
    public void setErrorMsg(final String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
